home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1995-08-31 | 5.2 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 57 65 | 64 20 41 75 67 20 33 30 |du on We|d Aug 30|
|00000040| 20 31 39 3a 33 38 3a 35 | 34 20 31 39 39 35 0a 3b | 19:38:5|4 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 75 74 | 69 6c 73 2f 74 65 78 74 |/lisp/ut|ils/text|
|00000090| 2d 70 72 6f 70 73 2e 65 | 6c 0a 3b 3b 3b 20 65 6d |-props.e|l.;;; em|
|000000a0| 61 63 73 20 76 65 72 73 | 69 6f 6e 20 31 39 2e 31 |acs vers|ion 19.1|
|000000b0| 33 20 58 45 6d 61 63 73 | 20 4c 75 63 69 64 2e 0a |3 XEmacs| Lucid..|
|000000c0| 3b 3b 3b 20 62 79 74 65 | 63 6f 6d 70 20 76 65 72 |;;; byte|comp ver|
|000000d0| 73 69 6f 6e 20 32 2e 32 | 35 3b 20 31 2d 53 65 70 |sion 2.2|5; 1-Sep|
|000000e0| 2d 39 34 2e 0a 3b 3b 3b | 20 6f 70 74 69 6d 69 7a |-94..;;;| optimiz|
|000000f0| 61 74 69 6f 6e 20 69 73 | 20 6f 6e 2e 0a 3b 3b 3b |ation is| on..;;;|
|00000100| 20 74 68 69 73 20 66 69 | 6c 65 20 75 73 65 73 20 | this fi|le uses |
|00000110| 6f 70 63 6f 64 65 73 20 | 77 68 69 63 68 20 64 6f |opcodes |which do|
|00000120| 20 6e 6f 74 20 65 78 69 | 73 74 20 69 6e 20 45 6d | not exi|st in Em|
|00000130| 61 63 73 20 31 38 2e 0a | 0a 28 69 66 20 28 61 6e |acs 18..|.(if (an|
|00000140| 64 20 28 62 6f 75 6e 64 | 70 20 27 65 6d 61 63 73 |d (bound|p 'emacs|
|00000150| 2d 76 65 72 73 69 6f 6e | 29 0a 09 20 28 6f 72 20 |-version|).. (or |
|00000160| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 70 |(and (bo|undp 'ep|
|00000170| 6f 63 68 3a 3a 76 65 72 | 73 69 6f 6e 29 20 65 70 |och::ver|sion) ep|
|00000180| 6f 63 68 3a 3a 76 65 72 | 73 69 6f 6e 29 0a 09 20 |och::ver|sion).. |
|00000190| 20 20 20 20 28 73 74 72 | 69 6e 67 2d 6c 65 73 73 | (str|ing-less|
|000001a0| 70 20 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 20 |p emacs-|version |
|000001b0| 22 31 39 22 29 29 29 0a | 20 20 20 20 28 65 72 72 |"19"))).| (err|
|000001c0| 6f 72 20 22 54 68 69 73 | 20 66 69 6c 65 20 77 61 |or "This| file wa|
|000001d0| 73 20 63 6f 6d 70 69 6c | 65 64 20 66 6f 72 20 45 |s compil|ed for E|
|000001e0| 6d 61 63 73 20 31 39 2e | 22 29 29 0a 0a 28 66 73 |macs 19.|"))..(fs|
|000001f0| 65 74 20 27 73 65 74 2d | 74 65 78 74 2d 70 72 6f |et 'set-|text-pro|
|00000200| 70 65 72 74 69 65 73 20 | 23 5b 28 73 74 61 72 74 |perties |#[(start|
|00000210| 20 65 6e 64 20 70 72 6f | 70 73 20 26 6f 70 74 69 | end pro|ps &opti|
|00000220| 6f 6e 61 6c 20 62 75 66 | 66 65 72 29 20 22 c0 c1 |onal buf|fer) "..|
|00000230| 5c 6e 0b 0c c5 89 c6 26 | 07 88 c7 0b 0c 0e 08 5c |\n.....&|.......\|
|00000240| 6e 24 87 22 20 5b 6d 61 | 70 2d 65 78 74 65 6e 74 |n$." [ma|p-extent|
|00000250| 73 20 23 5b 28 65 78 74 | 65 6e 74 20 69 67 6e 6f |s #[(ext|ent igno|
|00000260| 72 65 64 29 20 22 c0 09 | 5c 6e c3 0c c5 5c 22 c6 |red) "..|\n...\".|
|00000270| 44 0e 07 24 87 22 20 5b | 72 65 6d 6f 76 65 2d 74 |D..$." [|remove-t|
|00000280| 65 78 74 2d 70 72 6f 70 | 65 72 74 69 65 73 20 73 |ext-prop|erties s|
|00000290| 74 61 72 74 20 65 6e 64 | 20 65 78 74 65 6e 74 2d |tart end| extent-|
|000002a0| 70 72 6f 70 65 72 74 79 | 20 65 78 74 65 6e 74 20 |property| extent |
|000002b0| 74 65 78 74 2d 70 72 6f | 70 20 6e 69 6c 20 62 75 |text-pro|p nil bu|
|000002c0| 66 66 65 72 5d 20 36 5d | 20 62 75 66 66 65 72 20 |ffer] 6]| buffer |
|000002d0| 73 74 61 72 74 20 65 6e | 64 20 6e 69 6c 20 74 65 |start en|d nil te|
|000002e0| 78 74 2d 70 72 6f 70 20 | 61 64 64 2d 74 65 78 74 |xt-prop |add-text|
|000002f0| 2d 70 72 6f 70 65 72 74 | 69 65 73 20 70 72 6f 70 |-propert|ies prop|
|00000300| 73 5d 20 38 20 22 5c 0a | 59 6f 75 20 73 68 6f 75 |s] 8 "\.|You shou|
|00000310| 6c 64 20 4e 45 56 45 52 | 20 75 73 65 20 74 68 69 |ld NEVER| use thi|
|00000320| 73 20 66 75 6e 63 74 69 | 6f 6e 2e 20 20 49 74 20 |s functi|on. It |
|00000330| 69 73 20 69 64 65 6f 6c | 6f 67 69 63 61 6c 6c 79 |is ideol|ogically|
|00000340| 20 62 6c 61 73 70 68 65 | 6d 6f 75 73 2e 0a 49 74 | blasphe|mous..It|
|00000350| 20 69 73 20 70 72 6f 76 | 69 64 65 64 20 6f 6e 6c | is prov|ided onl|
|00000360| 79 20 74 6f 20 65 61 73 | 65 20 70 6f 72 74 69 6e |y to eas|e portin|
|00000370| 67 20 6f 66 20 62 72 6f | 6b 65 6e 20 46 53 46 20 |g of bro|ken FSF |
|00000380| 45 6d 61 63 73 20 70 72 | 6f 67 72 61 6d 73 2e 22 |Emacs pr|ograms."|
|00000390| 5d 29 0a 28 66 73 65 74 | 20 27 67 65 74 2d 74 65 |]).(fset| 'get-te|
|000003a0| 78 74 2d 70 72 6f 70 65 | 72 74 79 20 23 5b 28 70 |xt-prope|rty #[(p|
|000003b0| 6f 73 20 70 72 6f 70 20 | 26 6f 70 74 69 6f 6e 61 |os prop |&optiona|
|000003c0| 6c 20 62 75 66 66 65 72 | 29 20 22 c0 09 5c 6e 0b |l buffer|) "..\n.|
|000003d0| 23 89 1c ad 84 c5 0c 0b | 5c 22 29 87 22 20 5b 65 |#.......|\")." [e|
|000003e0| 78 74 65 6e 74 2d 61 74 | 20 70 6f 73 20 62 75 66 |xtent-at| pos buf|
|000003f0| 66 65 72 20 70 72 6f 70 | 20 65 20 65 78 74 65 6e |fer prop| e exten|
|00000400| 74 2d 70 72 6f 70 65 72 | 74 79 5d 20 35 20 22 5c |t-proper|ty] 5 "\|
|00000410| 0a 52 65 74 75 72 6e 73 | 20 74 68 65 20 76 61 6c |.Returns| the val|
|00000420| 75 65 20 6f 66 20 74 68 | 65 20 50 52 4f 50 20 70 |ue of th|e PROP p|
|00000430| 72 6f 70 65 72 74 79 20 | 61 74 20 74 68 65 20 67 |roperty |at the g|
|00000440| 69 76 65 6e 20 70 6f 73 | 69 74 69 6f 6e 2e 22 5d |iven pos|ition."]|
|00000450| 29 0a 28 66 73 65 74 20 | 27 65 78 74 65 6e 74 2d |).(fset |'extent-|
|00000460| 70 72 6f 70 65 72 74 69 | 65 73 2d 61 74 2d 31 20 |properti|es-at-1 |
|00000470| 23 5b 28 70 6f 73 69 74 | 69 6f 6e 20 62 75 66 66 |#[(posit|ion buff|
|00000480| 65 72 20 74 65 78 74 2d | 70 72 6f 70 73 2d 6f 6e |er text-|props-on|
|00000490| 6c 79 29 20 22 c0 89 89 | 19 1a 1b c4 0d 0e 06 0e |ly) "...|........|
|000004a0| 07 ad 81 c8 0b 24 89 13 | 83 aa 00 0e 07 ab 91 c9 |.....$..|........|
|000004b0| 0b c8 5c 22 89 1e 5c 6e | c9 0b 0e 5c 6e 5c 22 44 |..\"..\n|...\n\"D|
|000004c0| 11 29 aa d9 cb 0b 21 11 | cc 0b 21 ac 85 cd 0b 21 |.)....!.|..!....!|
|000004d0| ab cb 0d c9 0b ce 5c 22 | ab 85 cf 0b 21 aa 83 d0 |......\"|....!...|
|000004e0| 0b 21 55 ac b9 09 c0 1e | 11 89 1e 12 ab af 0e 12 |.!U.....|........|
|000004f0| 40 ce 3d ac 87 0e 12 40 | d3 3d ab 95 0e 11 ab 8a |@.=....@|.=......|
|00000500| 0e 11 0e 12 41 41 a1 88 | aa 84 09 41 41 11 c0 16 |....AA..|...AA...|
|00000510| 12 0e 12 16 11 0e 12 41 | 89 16 12 ac 51 2a 5c 6e |.......A|....Q*\n|
|00000520| ac 85 09 12 82 06 00 09 | 83 06 00 d4 5c 6e 09 40 |........|....\n.@|
|00000530| 5c 22 ac 89 09 40 09 41 | 40 5c 6e 42 42 12 09 41 |\"...@.A|@\nBB..A|
|00000540| 41 89 11 ac 69 82 06 00 | 5c 6e 2b 87 22 20 5b 6e |A...i...|\n+." [n|
|00000550| 69 6c 20 6e 65 77 2d 70 | 72 6f 70 73 20 70 72 6f |il new-p|rops pro|
|00000560| 70 73 20 65 78 74 65 6e | 74 20 65 78 74 65 6e 74 |ps exten|t extent|
|00000570| 2d 61 74 20 70 6f 73 69 | 74 69 6f 6e 20 62 75 66 |-at posi|tion buf|
|00000580| 66 65 72 20 74 65 78 74 | 2d 70 72 6f 70 73 2d 6f |fer text|-props-o|
|00000590| 6e 6c 79 20 74 65 78 74 | 2d 70 72 6f 70 20 65 78 |nly text|-prop ex|
|000005a0| 74 65 6e 74 2d 70 72 6f | 70 65 72 74 79 20 70 72 |tent-pro|perty pr|
|000005b0| 6f 70 20 65 78 74 65 6e | 74 2d 70 72 6f 70 65 72 |op exten|t-proper|
|000005c0| 74 69 65 73 20 65 78 74 | 65 6e 74 2d 62 65 67 69 |ties ext|ent-begi|
|000005d0| 6e 2d 67 6c 79 70 68 20 | 65 78 74 65 6e 74 2d 65 |n-glyph |extent-e|
|000005e0| 6e 64 2d 67 6c 79 70 68 | 20 62 65 67 69 6e 2d 67 |nd-glyph| begin-g|
|000005f0| 6c 79 70 68 20 65 78 74 | 65 6e 74 2d 73 74 61 72 |lyph ext|ent-star|
|00000600| 74 2d 70 6f 73 69 74 69 | 6f 6e 20 65 78 74 65 6e |t-positi|on exten|
|00000610| 74 2d 65 6e 64 2d 70 6f | 73 69 74 69 6f 6e 20 70 |t-end-po|sition p|
|00000620| 72 65 76 20 72 65 73 74 | 20 65 6e 64 2d 67 6c 79 |rev rest| end-gly|
|00000630| 70 68 20 67 65 74 66 5d | 20 36 5d 29 0a 28 66 73 |ph getf]| 6]).(fs|
|00000640| 65 74 20 27 65 78 74 65 | 6e 74 2d 70 72 6f 70 65 |et 'exte|nt-prope|
|00000650| 72 74 69 65 73 2d 61 74 | 20 23 5b 28 70 6f 73 69 |rties-at| #[(posi|
|00000660| 74 69 6f 6e 20 26 6f 70 | 74 69 6f 6e 61 6c 20 62 |tion &op|tional b|
|00000670| 75 66 66 65 72 29 20 22 | c0 09 5c 6e c3 23 87 22 |uffer) "|..\n.#."|
|00000680| 20 5b 65 78 74 65 6e 74 | 2d 70 72 6f 70 65 72 74 | [extent|-propert|
|00000690| 69 65 73 2d 61 74 2d 31 | 20 70 6f 73 69 74 69 6f |ies-at-1| positio|
|000006a0| 6e 20 62 75 66 66 65 72 | 20 6e 69 6c 5d 20 34 20 |n buffer| nil] 4 |
|000006b0| 22 5c 0a 52 65 74 75 72 | 6e 73 20 74 68 65 20 70 |"\.Retur|ns the p|
|000006c0| 72 6f 70 65 72 74 69 65 | 73 20 6f 66 20 74 68 65 |ropertie|s of the|
|000006d0| 20 63 68 61 72 61 63 74 | 65 72 20 61 74 20 74 68 | charact|er at th|
|000006e0| 65 20 67 69 76 65 6e 20 | 70 6f 73 69 74 69 6f 6e |e given |position|
|000006f0| 2c 0a 62 79 20 6d 65 72 | 67 69 6e 67 20 74 68 65 |,.by mer|ging the|
|00000700| 20 70 72 6f 70 65 72 74 | 69 65 73 20 6f 66 20 6f | propert|ies of o|
|00000710| 76 65 72 6c 61 70 70 69 | 6e 67 20 65 78 74 65 6e |verlappi|ng exten|
|00000720| 74 73 2e 20 20 54 68 65 | 20 72 65 74 75 72 6e 65 |ts. The| returne|
|00000730| 64 20 76 61 6c 75 65 0a | 69 73 20 61 20 70 72 6f |d value.|is a pro|
|00000740| 70 65 72 74 79 20 6c 69 | 73 74 2c 20 73 6f 6d 65 |perty li|st, some|
|00000750| 20 6f 66 20 77 68 69 63 | 68 20 6d 61 79 20 62 65 | of whic|h may be|
|00000760| 20 73 68 61 72 65 64 20 | 77 69 74 68 20 6f 74 68 | shared |with oth|
|00000770| 65 72 20 73 74 72 75 63 | 74 75 72 65 73 2e 0a 59 |er struc|tures..Y|
|00000780| 6f 75 20 6d 75 73 74 20 | 6e 6f 74 20 6d 6f 64 69 |ou must |not modi|
|00000790| 66 79 20 69 74 2e 0a 0a | 54 68 69 73 20 72 65 74 |fy it...|This ret|
|000007a0| 75 72 6e 73 20 61 6c 6c | 20 70 72 6f 70 65 72 74 |urns all| propert|
|000007b0| 69 65 73 20 6f 6e 20 61 | 6c 6c 20 65 78 74 65 6e |ies on a|ll exten|
|000007c0| 74 73 2e 22 5d 29 0a 28 | 66 73 65 74 20 27 74 65 |ts."]).(|fset 'te|
|000007d0| 78 74 2d 70 72 6f 70 65 | 72 74 69 65 73 2d 61 74 |xt-prope|rties-at|
|000007e0| 20 23 5b 28 70 6f 73 69 | 74 69 6f 6e 20 26 6f 70 | #[(posi|tion &op|
|000007f0| 74 69 6f 6e 61 6c 20 62 | 75 66 66 65 72 29 20 22 |tional b|uffer) "|
|00000800| c0 09 5c 6e c3 23 87 22 | 20 5b 65 78 74 65 6e 74 |..\n.#."| [extent|
|00000810| 2d 70 72 6f 70 65 72 74 | 69 65 73 2d 61 74 2d 31 |-propert|ies-at-1|
|00000820| 20 70 6f 73 69 74 69 6f | 6e 20 62 75 66 66 65 72 | positio|n buffer|
|00000830| 20 74 5d 20 34 20 22 5c | 0a 52 65 74 75 72 6e 73 | t] 4 "\|.Returns|
|00000840| 20 74 68 65 20 70 72 6f | 70 65 72 74 69 65 73 20 | the pro|perties |
|00000850| 6f 66 20 74 68 65 20 63 | 68 61 72 61 63 74 65 72 |of the c|haracter|
|00000860| 20 61 74 20 74 68 65 20 | 67 69 76 65 6e 20 70 6f | at the |given po|
|00000870| 73 69 74 69 6f 6e 2c 0a | 62 79 20 6d 65 72 67 69 |sition,.|by mergi|
|00000880| 6e 67 20 74 68 65 20 70 | 72 6f 70 65 72 74 69 65 |ng the p|ropertie|
|00000890| 73 20 6f 66 20 6f 76 65 | 72 6c 61 70 70 69 6e 67 |s of ove|rlapping|
|000008a0| 20 65 78 74 65 6e 74 73 | 2e 20 20 54 68 65 20 72 | extents|. The r|
|000008b0| 65 74 75 72 6e 65 64 20 | 76 61 6c 75 65 0a 69 73 |eturned |value.is|
|000008c0| 20 61 20 70 72 6f 70 65 | 72 74 79 20 6c 69 73 74 | a prope|rty list|
|000008d0| 2c 20 73 6f 6d 65 20 6f | 66 20 77 68 69 63 68 20 |, some o|f which |
|000008e0| 6d 61 79 20 62 65 20 73 | 68 61 72 65 64 20 77 69 |may be s|hared wi|
|000008f0| 74 68 20 6f 74 68 65 72 | 20 73 74 72 75 63 74 75 |th other| structu|
|00000900| 72 65 73 2e 0a 59 6f 75 | 20 6d 75 73 74 20 6e 6f |res..You| must no|
|00000910| 74 20 6d 6f 64 69 66 79 | 20 69 74 2e 0a 0a 54 68 |t modify| it...Th|
|00000920| 69 73 20 72 65 74 75 72 | 6e 73 20 6f 6e 6c 79 20 |is retur|ns only |
|00000930| 74 68 6f 73 65 20 70 72 | 6f 70 65 72 74 69 65 73 |those pr|operties|
|00000940| 20 61 64 64 65 64 20 77 | 69 74 68 20 60 70 75 74 | added w|ith `put|
|00000950| 2d 74 65 78 74 2d 70 72 | 6f 70 65 72 74 79 27 2e |-text-pr|operty'.|
|00000960| 0a 53 65 65 20 61 6c 73 | 6f 20 60 65 78 74 65 6e |.See als|o `exten|
|00000970| 74 2d 70 72 6f 70 65 72 | 74 69 65 73 2d 61 74 27 |t-proper|ties-at'|
|00000980| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 74 65 78 74 |."]).(fs|et 'text|
|00000990| 2d 70 72 6f 70 65 72 74 | 79 2d 61 6e 79 20 23 5b |-propert|y-any #[|
|000009a0| 28 73 74 61 72 74 20 65 | 6e 64 20 70 72 6f 70 20 |(start e|nd prop |
|000009b0| 76 61 6c 75 65 20 26 6f | 70 74 69 6f 6e 61 6c 20 |value &o|ptional |
|000009c0| 62 75 66 66 65 72 29 20 | 22 08 ab 98 08 09 57 ab |buffer) |".....W.|
|000009d0| 93 5c 6e c3 08 0c 0d 23 | 3d ac 8a c6 08 0c 0d 09 |.\n....#|=.......|
|000009e0| 24 89 10 ac 68 08 09 3d | 3f ad 81 08 87 22 20 5b |$...h..=|?...." [|
|000009f0| 73 74 61 72 74 20 65 6e | 64 20 76 61 6c 75 65 20 |start en|d value |
|00000a00| 67 65 74 2d 74 65 78 74 | 2d 70 72 6f 70 65 72 74 |get-text|-propert|
|00000a10| 79 20 70 72 6f 70 20 62 | 75 66 66 65 72 20 6e 65 |y prop b|uffer ne|
|00000a20| 78 74 2d 73 69 6e 67 6c | 65 2d 70 72 6f 70 65 72 |xt-singl|e-proper|
|00000a30| 74 79 2d 63 68 61 6e 67 | 65 5d 20 36 20 22 5c 0a |ty-chang|e] 6 "\.|
|00000a40| 43 68 65 63 6b 20 74 65 | 78 74 20 66 72 6f 6d 20 |Check te|xt from |
|00000a50| 53 54 41 52 54 20 74 6f | 20 45 4e 44 20 74 6f 20 |START to| END to |
|00000a60| 73 65 65 20 69 66 20 50 | 52 4f 50 20 69 73 20 65 |see if P|ROP is e|
|00000a70| 76 65 72 20 60 65 71 27 | 20 74 6f 20 56 41 4c 55 |ver `eq'| to VALU|
|00000a80| 45 2e 0a 49 66 20 73 6f | 2c 20 72 65 74 75 72 6e |E..If so|, return|
|00000a90| 20 74 68 65 20 70 6f 73 | 69 74 69 6f 6e 20 6f 66 | the pos|ition of|
|00000aa0| 20 74 68 65 20 66 69 72 | 73 74 20 63 68 61 72 61 | the fir|st chara|
|00000ab0| 63 74 65 72 20 77 68 6f | 73 65 20 50 52 4f 50 20 |cter who|se PROP |
|00000ac0| 69 73 20 60 65 71 27 0a | 74 6f 20 56 41 4c 55 45 |is `eq'.|to VALUE|
|00000ad0| 2e 20 20 4f 74 68 65 72 | 77 69 73 65 20 72 65 74 |. Other|wise ret|
|00000ae0| 75 72 6e 20 6e 69 6c 2e | 0a 54 68 65 20 6f 70 74 |urn nil.|.The opt|
|00000af0| 69 6f 6e 61 6c 20 66 69 | 66 74 68 20 61 72 67 75 |ional fi|fth argu|
|00000b00| 6d 65 6e 74 2c 20 4f 42 | 4a 45 43 54 2c 20 69 73 |ment, OB|JECT, is|
|00000b10| 20 74 68 65 20 62 75 66 | 66 65 72 20 63 6f 6e 74 | the buf|fer cont|
|00000b20| 61 69 6e 69 6e 67 20 74 | 68 65 20 74 65 78 74 2e |aining t|he text.|
|00000b30| 22 5d 29 0a 28 66 73 65 | 74 20 27 74 65 78 74 2d |"]).(fse|t 'text-|
|00000b40| 70 72 6f 70 65 72 74 79 | 2d 6e 6f 74 2d 61 6c 6c |property|-not-all|
|00000b50| 20 23 5b 28 73 74 61 72 | 74 20 65 6e 64 20 70 72 | #[(star|t end pr|
|00000b60| 6f 70 20 76 61 6c 75 65 | 20 26 6f 70 74 69 6f 6e |op value| &option|
|00000b70| 61 6c 20 62 75 66 66 65 | 72 29 20 22 08 c1 5c 6e |al buffe|r) "..\n|
|00000b80| 0b 0c 23 3d ac 82 5c 6e | 87 c5 5c 6e 0b 0c 0e 06 |..#=..\n|..\n....|
|00000b90| 24 89 1e 07 0e 06 3d 3f | ad 82 0e 07 29 87 22 20 |$.....=?|....)." |
|00000ba0| 5b 76 61 6c 75 65 20 67 | 65 74 2d 74 65 78 74 2d |[value g|et-text-|
|00000bb0| 70 72 6f 70 65 72 74 79 | 20 73 74 61 72 74 20 70 |property| start p|
|00000bc0| 72 6f 70 20 62 75 66 66 | 65 72 20 6e 65 78 74 2d |rop buff|er next-|
|00000bd0| 73 69 6e 67 6c 65 2d 70 | 72 6f 70 65 72 74 79 2d |single-p|roperty-|
|00000be0| 63 68 61 6e 67 65 20 65 | 6e 64 20 72 65 74 76 61 |change e|nd retva|
|00000bf0| 6c 5d 20 36 20 22 5c 0a | 43 68 65 63 6b 20 74 65 |l] 6 "\.|Check te|
|00000c00| 78 74 20 66 72 6f 6d 20 | 53 54 41 52 54 20 74 6f |xt from |START to|
|00000c10| 20 45 4e 44 20 74 6f 20 | 73 65 65 20 69 66 20 50 | END to |see if P|
|00000c20| 52 4f 50 20 69 73 20 65 | 76 65 72 20 6e 6f 74 20 |ROP is e|ver not |
|00000c30| 60 65 71 27 20 74 6f 20 | 56 41 4c 55 45 2e 0a 49 |`eq' to |VALUE..I|
|00000c40| 66 20 73 6f 2c 20 72 65 | 74 75 72 6e 20 74 68 65 |f so, re|turn the|
|00000c50| 20 70 6f 73 69 74 69 6f | 6e 20 6f 66 20 74 68 65 | positio|n of the|
|00000c60| 20 66 69 72 73 74 20 63 | 68 61 72 61 63 74 65 72 | first c|haracter|
|00000c70| 20 77 68 6f 73 65 20 50 | 52 4f 50 20 69 73 20 6e | whose P|ROP is n|
|00000c80| 6f 74 0a 60 65 71 27 20 | 74 6f 20 56 41 4c 55 45 |ot.`eq' |to VALUE|
|00000c90| 2e 20 20 4f 74 68 65 72 | 77 69 73 65 2c 20 72 65 |. Other|wise, re|
|00000ca0| 74 75 72 6e 20 6e 69 6c | 2e 0a 54 68 65 20 6f 70 |turn nil|..The op|
|00000cb0| 74 69 6f 6e 61 6c 20 66 | 69 66 74 68 20 61 72 67 |tional f|ifth arg|
|00000cc0| 75 6d 65 6e 74 2c 20 4f | 42 4a 45 43 54 2c 20 69 |ument, O|BJECT, i|
|00000cd0| 73 20 74 68 65 20 62 75 | 66 66 65 72 20 63 6f 6e |s the bu|ffer con|
|00000ce0| 74 61 69 6e 69 6e 67 20 | 74 68 65 20 74 65 78 74 |taining |the text|
|00000cf0| 2e 22 5d 29 0a 28 66 73 | 65 74 20 27 6e 65 78 74 |."]).(fs|et 'next|
|00000d00| 2d 70 72 6f 70 65 72 74 | 79 2d 63 68 61 6e 67 65 |-propert|y-change|
|00000d10| 20 23 5b 28 70 6f 73 20 | 26 6f 70 74 69 6f 6e 61 | #[(pos |&optiona|
|00000d20| 6c 20 62 75 66 66 65 72 | 20 6c 69 6d 69 74 29 20 |l buffer| limit) |
|00000d30| 22 08 3f 19 08 ac 84 c2 | 0b 21 10 c4 0d 0b 5c 22 |".?.....|.!....\"|
|00000d40| 1e 06 c7 0d 0b 5c 22 89 | 15 08 57 ab 8a c8 0e 06 |.....\".|..W.....|
|00000d50| c4 0d 0b 5c 22 5c 22 ac | 6c 29 0d 08 57 ab 83 0d |...\"\".|l)..W...|
|00000d60| aa 85 09 3f ad 81 08 29 | 87 22 20 5b 6c 69 6d 69 |...?...)|." [limi|
|00000d70| 74 20 6c 69 6d 69 74 2d | 77 61 73 2d 6e 69 6c 20 |t limit-|was-nil |
|00000d80| 70 6f 69 6e 74 2d 6d 61 | 78 20 62 75 66 66 65 72 |point-ma|x buffer|
|00000d90| 20 65 78 74 65 6e 74 2d | 70 72 6f 70 65 72 74 69 | extent-|properti|
|00000da0| 65 73 2d 61 74 20 70 6f | 73 20 76 61 6c 75 65 20 |es-at po|s value |
|00000db0| 6e 65 78 74 2d 65 78 74 | 65 6e 74 2d 63 68 61 6e |next-ext|ent-chan|
|00000dc0| 67 65 20 70 6c 69 73 74 | 73 2d 65 71 5d 20 35 20 |ge plist|s-eq] 5 |
|00000dd0| 22 5c 0a 52 65 74 75 72 | 6e 20 74 68 65 20 70 6f |"\.Retur|n the po|
|00000de0| 73 69 74 69 6f 6e 20 6f | 66 20 6e 65 78 74 20 70 |sition o|f next p|
|00000df0| 72 6f 70 65 72 74 79 20 | 63 68 61 6e 67 65 2e 0a |roperty |change..|
|00000e00| 53 63 61 6e 73 20 66 6f | 72 77 61 72 64 20 66 72 |Scans fo|rward fr|
|00000e10| 6f 6d 20 50 4f 53 20 69 | 6e 20 42 55 46 46 45 52 |om POS i|n BUFFER|
|00000e20| 20 28 64 65 66 61 75 6c | 74 73 20 74 6f 20 74 68 | (defaul|ts to th|
|00000e30| 65 20 63 75 72 72 65 6e | 74 20 62 75 66 66 65 72 |e curren|t buffer|
|00000e40| 29 20 75 6e 74 69 6c 0a | 20 69 74 20 66 69 6e 64 |) until.| it find|
|00000e50| 73 20 61 20 63 68 61 6e | 67 65 20 69 6e 20 73 6f |s a chan|ge in so|
|00000e60| 6d 65 20 74 65 78 74 20 | 70 72 6f 70 65 72 74 79 |me text |property|
|00000e70| 2c 20 74 68 65 6e 20 72 | 65 74 75 72 6e 73 20 74 |, then r|eturns t|
|00000e80| 68 65 20 70 6f 73 69 74 | 69 6f 6e 20 6f 66 0a 20 |he posit|ion of. |
|00000e90| 74 68 65 20 63 68 61 6e | 67 65 2e 0a 52 65 74 75 |the chan|ge..Retu|
|00000ea0| 72 6e 73 20 6e 69 6c 20 | 69 66 20 74 68 65 20 70 |rns nil |if the p|
|00000eb0| 72 6f 70 65 72 74 69 65 | 73 20 72 65 6d 61 69 6e |ropertie|s remain|
|00000ec0| 20 75 6e 63 68 61 6e 67 | 65 64 20 61 6c 6c 20 74 | unchang|ed all t|
|00000ed0| 68 65 20 77 61 79 20 74 | 6f 20 74 68 65 20 65 6e |he way t|o the en|
|00000ee0| 64 2e 0a 49 66 20 74 68 | 65 20 76 61 6c 75 65 20 |d..If th|e value |
|00000ef0| 69 73 20 6e 6f 6e 2d 6e | 69 6c 2c 20 69 74 20 69 |is non-n|il, it i|
|00000f00| 73 20 61 20 70 6f 73 69 | 74 69 6f 6e 20 67 72 65 |s a posi|tion gre|
|00000f10| 61 74 65 72 20 74 68 61 | 6e 20 50 4f 53 2c 20 6e |ater tha|n POS, n|
|00000f20| 65 76 65 72 20 65 71 75 | 61 6c 2e 0a 49 66 20 74 |ever equ|al..If t|
|00000f30| 68 65 20 6f 70 74 69 6f | 6e 61 6c 20 74 68 69 72 |he optio|nal thir|
|00000f40| 64 20 61 72 67 75 6d 65 | 6e 74 20 4c 49 4d 49 54 |d argume|nt LIMIT|
|00000f50| 20 69 73 20 6e 6f 6e 2d | 6e 69 6c 2c 20 64 6f 6e | is non-|nil, don|
|00000f60| 27 74 20 73 65 61 72 63 | 68 0a 20 70 61 73 74 20 |'t searc|h. past |
|00000f70| 70 6f 73 69 74 69 6f 6e | 20 4c 49 4d 49 54 3b 20 |position| LIMIT; |
|00000f80| 72 65 74 75 72 6e 20 4c | 49 4d 49 54 20 69 66 20 |return L|IMIT if |
|00000f90| 6e 6f 74 68 69 6e 67 20 | 69 73 20 66 6f 75 6e 64 |nothing |is found|
|00000fa0| 20 62 65 66 6f 72 65 20 | 4c 49 4d 49 54 2e 0a 49 | before |LIMIT..I|
|00000fb0| 66 20 74 77 6f 20 6f 72 | 20 6d 6f 72 65 20 65 78 |f two or| more ex|
|00000fc0| 74 65 6e 74 73 20 77 69 | 74 68 20 63 6f 6e 66 6c |tents wi|th confl|
|00000fd0| 69 63 74 69 6e 67 20 6e | 6f 6e 2d 6e 69 6c 20 76 |icting n|on-nil v|
|00000fe0| 61 6c 75 65 73 20 66 6f | 72 20 61 20 70 72 6f 70 |alues fo|r a prop|
|00000ff0| 65 72 74 79 20 6f 76 65 | 72 6c 61 70 0a 20 61 20 |erty ove|rlap. a |
|00001000| 70 61 72 74 69 63 75 6c | 61 72 20 63 68 61 72 61 |particul|ar chara|
|00001010| 63 74 65 72 2c 20 69 74 | 20 69 73 20 75 6e 64 65 |cter, it| is unde|
|00001020| 66 69 6e 65 64 20 77 68 | 69 63 68 20 76 61 6c 75 |fined wh|ich valu|
|00001030| 65 20 69 73 20 63 6f 6e | 73 69 64 65 72 65 64 20 |e is con|sidered |
|00001040| 74 6f 20 62 65 0a 20 74 | 68 65 20 76 61 6c 75 65 |to be. t|he value|
|00001050| 20 6f 66 20 74 68 65 20 | 70 72 6f 70 65 72 74 79 | of the |property|
|00001060| 2e 20 28 4e 6f 74 65 20 | 74 68 61 74 20 74 68 69 |. (Note |that thi|
|00001070| 73 20 73 69 74 75 61 74 | 69 6f 6e 20 77 69 6c 6c |s situat|ion will|
|00001080| 20 6e 6f 74 20 68 61 70 | 70 65 6e 20 69 66 0a 20 | not hap|pen if. |
|00001090| 79 6f 75 20 61 6c 77 61 | 79 73 20 75 73 65 20 74 |you alwa|ys use t|
|000010a0| 68 65 20 74 65 78 74 2d | 70 72 6f 70 65 72 74 79 |he text-|property|
|000010b0| 20 70 72 69 6d 69 74 69 | 76 65 73 2e 29 22 5d 29 | primiti|ves.)"])|
|000010c0| 0a 28 66 73 65 74 20 27 | 70 72 65 76 69 6f 75 73 |.(fset '|previous|
|000010d0| 2d 70 72 6f 70 65 72 74 | 79 2d 63 68 61 6e 67 65 |-propert|y-change|
|000010e0| 20 23 5b 28 70 6f 73 20 | 26 6f 70 74 69 6f 6e 61 | #[(pos |&optiona|
|000010f0| 6c 20 62 75 66 66 65 72 | 20 6c 69 6d 69 74 29 20 |l buffer| limit) |
|00001100| 22 08 3f 19 08 ac 84 c2 | 0b 21 10 c4 0d 53 0b 5c |".?.....|.!...S.\|
|00001110| 22 1e 06 c7 0d 0b 5c 22 | 89 15 08 56 ab 8b c8 0e |".....\"|...V....|
|00001120| 06 c4 0d 53 0b 5c 22 5c | 22 ac 6b 29 0d 08 56 ab |...S.\"\|".k)..V.|
|00001130| 83 0d aa 85 09 3f ad 81 | 08 29 87 22 20 5b 6c 69 |.....?..|.)." [li|
|00001140| 6d 69 74 20 6c 69 6d 69 | 74 2d 77 61 73 2d 6e 69 |mit limi|t-was-ni|
|00001150| 6c 20 70 6f 69 6e 74 2d | 6d 69 6e 20 62 75 66 66 |l point-|min buff|
|00001160| 65 72 20 65 78 74 65 6e | 74 2d 70 72 6f 70 65 72 |er exten|t-proper|
|00001170| 74 69 65 73 2d 61 74 20 | 70 6f 73 20 76 61 6c 75 |ties-at |pos valu|
|00001180| 65 20 70 72 65 76 69 6f | 75 73 2d 65 78 74 65 6e |e previo|us-exten|
|00001190| 74 2d 63 68 61 6e 67 65 | 20 70 6c 69 73 74 73 2d |t-change| plists-|
|000011a0| 65 71 5d 20 35 20 22 5c | 0a 52 65 74 75 72 6e 20 |eq] 5 "\|.Return |
|000011b0| 74 68 65 20 70 6f 73 69 | 74 69 6f 6e 20 6f 66 20 |the posi|tion of |
|000011c0| 70 72 65 76 69 6f 75 73 | 20 70 72 6f 70 65 72 74 |previous| propert|
|000011d0| 79 20 63 68 61 6e 67 65 | 2e 0a 53 63 61 6e 73 20 |y change|..Scans |
|000011e0| 62 61 63 6b 77 61 72 64 | 20 66 72 6f 6d 20 50 4f |backward| from PO|
|000011f0| 53 20 69 6e 20 42 55 46 | 46 45 52 20 28 64 65 66 |S in BUF|FER (def|
|00001200| 61 75 6c 74 73 20 74 6f | 20 74 68 65 20 63 75 72 |aults to| the cur|
|00001210| 72 65 6e 74 20 62 75 66 | 66 65 72 29 20 75 6e 74 |rent buf|fer) unt|
|00001220| 69 6c 0a 20 69 74 20 66 | 69 6e 64 73 20 61 20 63 |il. it f|inds a c|
|00001230| 68 61 6e 67 65 20 69 6e | 20 73 6f 6d 65 20 74 65 |hange in| some te|
|00001240| 78 74 20 70 72 6f 70 65 | 72 74 79 2c 20 74 68 65 |xt prope|rty, the|
|00001250| 6e 20 72 65 74 75 72 6e | 73 20 74 68 65 20 70 6f |n return|s the po|
|00001260| 73 69 74 69 6f 6e 20 6f | 66 0a 20 74 68 65 20 63 |sition o|f. the c|
|00001270| 68 61 6e 67 65 2e 0a 52 | 65 74 75 72 6e 73 20 6e |hange..R|eturns n|
|00001280| 69 6c 20 69 66 20 74 68 | 65 20 70 72 6f 70 65 72 |il if th|e proper|
|00001290| 74 69 65 73 20 72 65 6d | 61 69 6e 20 75 6e 63 68 |ties rem|ain unch|
|000012a0| 61 6e 67 65 64 20 61 6c | 6c 20 74 68 65 20 77 61 |anged al|l the wa|
|000012b0| 79 20 74 6f 20 74 68 65 | 20 62 65 67 69 6e 6e 69 |y to the| beginni|
|000012c0| 6e 67 2e 0a 49 66 20 74 | 68 65 20 76 61 6c 75 65 |ng..If t|he value|
|000012d0| 20 69 73 20 6e 6f 6e 2d | 6e 69 6c 2c 20 69 74 20 | is non-|nil, it |
|000012e0| 69 73 20 61 20 70 6f 73 | 69 74 69 6f 6e 20 6c 65 |is a pos|ition le|
|000012f0| 73 73 20 74 68 61 6e 20 | 50 4f 53 2c 20 6e 65 76 |ss than |POS, nev|
|00001300| 65 72 20 65 71 75 61 6c | 2e 0a 49 66 20 74 68 65 |er equal|..If the|
|00001310| 20 6f 70 74 69 6f 6e 61 | 6c 20 74 68 69 72 64 20 | optiona|l third |
|00001320| 61 72 67 75 6d 65 6e 74 | 20 4c 49 4d 49 54 20 69 |argument| LIMIT i|
|00001330| 73 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 64 6f 6e 27 74 |s non-ni|l, don't|
|00001340| 20 73 65 61 72 63 68 20 | 62 61 63 6b 0a 20 70 61 | search |back. pa|
|00001350| 73 74 20 70 6f 73 69 74 | 69 6f 6e 20 4c 49 4d 49 |st posit|ion LIMI|
|00001360| 54 3b 20 72 65 74 75 72 | 6e 20 4c 49 4d 49 54 20 |T; retur|n LIMIT |
|00001370| 69 66 20 6e 6f 74 68 69 | 6e 67 20 69 73 20 66 6f |if nothi|ng is fo|
|00001380| 75 6e 64 20 75 6e 74 69 | 6c 20 4c 49 4d 49 54 2e |und unti|l LIMIT.|
|00001390| 0a 49 66 20 74 77 6f 20 | 6f 72 20 6d 6f 72 65 20 |.If two |or more |
|000013a0| 65 78 74 65 6e 74 73 20 | 77 69 74 68 20 63 6f 6e |extents |with con|
|000013b0| 66 6c 69 63 74 69 6e 67 | 20 6e 6f 6e 2d 6e 69 6c |flicting| non-nil|
|000013c0| 20 76 61 6c 75 65 73 20 | 66 6f 72 20 61 20 70 72 | values |for a pr|
|000013d0| 6f 70 65 72 74 79 20 6f | 76 65 72 6c 61 70 0a 20 |operty o|verlap. |
|000013e0| 61 20 70 61 72 74 69 63 | 75 6c 61 72 20 63 68 61 |a partic|ular cha|
|000013f0| 72 61 63 74 65 72 2c 20 | 69 74 20 69 73 20 75 6e |racter, |it is un|
|00001400| 64 65 66 69 6e 65 64 20 | 77 68 69 63 68 20 76 61 |defined |which va|
|00001410| 6c 75 65 20 69 73 20 63 | 6f 6e 73 69 64 65 72 65 |lue is c|onsidere|
|00001420| 64 20 74 6f 20 62 65 0a | 20 74 68 65 20 76 61 6c |d to be.| the val|
|00001430| 75 65 20 6f 66 20 74 68 | 65 20 70 72 6f 70 65 72 |ue of th|e proper|
|00001440| 74 79 2e 20 28 4e 6f 74 | 65 20 74 68 61 74 20 74 |ty. (Not|e that t|
|00001450| 68 69 73 20 73 69 74 75 | 61 74 69 6f 6e 20 77 69 |his situ|ation wi|
|00001460| 6c 6c 20 6e 6f 74 20 68 | 61 70 70 65 6e 20 69 66 |ll not h|appen if|
|00001470| 0a 20 79 6f 75 20 61 6c | 77 61 79 73 20 75 73 65 |. you al|ways use|
|00001480| 20 74 68 65 20 74 65 78 | 74 2d 70 72 6f 70 65 72 | the tex|t-proper|
|00001490| 74 79 20 70 72 69 6d 69 | 74 69 76 65 73 2e 29 22 |ty primi|tives.)"|
|000014a0| 5d 29 0a 28 70 72 6f 76 | 69 64 65 20 27 74 65 78 |]).(prov|ide 'tex|
|000014b0| 74 2d 70 72 6f 70 73 29 | 0a |t-props)|. |
+--------+-------------------------+-------------------------+--------+--------+